<%@page import="tx.bj12320.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title><%=Infoissue.TABLE_ALIAS%>信息</title>

</rapid:override>

<rapid:override name="content">
	<s:form action="/pages/Infoissue/list.do" method="post" theme="simple">

		<s:hidden name="infoissueId" id="infoissueId" value="%{model.infoissueId}"/>

		<table class="formTable">
			<tr>
				<td class="tdLabel">用户名:</td>
				<td><s:property value="%{model.userInfo.userName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=Infoissue.ALIAS_INFO_TITLE%></td>
				<td><s:property value="%{model.infoTitle}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=Infoissue.ALIAS_ISSUE_DATE%></td>
				<td><s:property value="%{model.issueDateString}" /></td>
			</tr>
			<tr>
			 	<td class="tdLabel"    height="400" align="left" valign="top"><%=Infoissue.ALIAS_INFO_CONTENT%></td>
				<td   height="400" align="left" valign="top" >
				<s:property value="%{model.infoContent}" escape="false" />
 				 </td>
			</tr>

			<tr>
				<td class="tdLabel"><%=Infoissue.ALIAS_INFO_TYPE%></td>
				<td> <s:radio value="%{model.infoType}" list="%{@tx.bj12320.model.enums.ToPublishInfoTypeEnum@toMap()}" key="infoType"   cssClass="validate-one-required" theme="simple"/>
				    </td>
			</tr>
			<tr>
				<td class="tdLabel"><%=Infoissue.ALIAS_ATTACHMENT_NAME%></td>
				<td><s:property value="%{model.attachmentName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=Infoissue.ALIAS_ATTACHMENT_FILE%></td>
				<td><a href="<c:url value="/infoissue-files/"/><s:property value="%{model.attachmentFile}" />"><s:property value="attachmentFile" /></a>
				</td>
			</tr>
		</table>
		 <input type="button" value="返回列表" onclick="window.location='${ctx}/pages/Infoissue/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>
		<s:if test="%{@tx.bj12320.util.WebUtils@is12320User()}">
		<input type="button" value="采纳此信息" onclick="window.location.href='${ctx}/pages/Infoissue/adoptPublishInfo.do?infoissueId=${infoissueId }'"/>
		</s:if>
	</s:form>
</rapid:override>

<%@ include file="base.jsp" %>